package org.softmed.rest.config;

import java.util.ArrayList;
import java.util.List;

import org.softmed.rest.config.Module;

public class Application {

	boolean active = true;
	Long id;
	String name;
	String relativeUri;

	List<Module> modules = new ArrayList<Module>();

	List<String> modulePaths = new ArrayList<String>();

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public List<Module> getModules() {
		return modules;
	}

	public void setModules(List<Module> modules) {
		this.modules = modules;
	}

	private Object readResolve() {
		modules = new ArrayList<Module>();
		modulePaths = new ArrayList<String>();
		return this;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRelativeUri() {
		return relativeUri;
	}

	public void setRelativeUri(String relativeUri) {
		this.relativeUri = relativeUri;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getModulePaths() {
		return modulePaths;
	}

	public void setModulePaths(List<String> modulePaths) {
		this.modulePaths = modulePaths;
	}

}
